Skip to main content

Authentication

Apart from the web interface, edeXa.com's blockchain minting functionality is also accessible via API interaction. To access our API, please create an account.

tip
MAINNET BASEURL
https://api-edexagw.edexa.com/bnft
TESTNET BASEURL
https://api-edexagw.io-world.com/bnft

Authenticate User

POST authenticate
  • This endpoint is used to authenticate with our service. Upon registration, users will receive a client ID and secret key, which are required for authentication.

  • If you are already registered you can get your api credentials : https://accounts.io-world.com

  • client-id is required.

  • secret-key is required.

  • The Authorization token will be valid for 7 days.

POST: Authenticate User
cURL
curl --location -g --request POST 'https://api-edexagw.io-world.com/bnft/authenticate' \
--header 'client-id: <CLIENT ID>' \
--header 'secret-key: <SECRET KEY>'
Parameters
KeyValue/TypeDescription
clientId`67809********************8`An string
Secret key`789zbh**************8`An string
Responses
200: OK
{
"status": 200,
"message": "Logged in successfully",
"data": {
"token": "eyJhbG***********.eyJzdWIiOiJVMkZzZE***********************",
"_id": "6135*************",
"name": "John Doe",
"username": "John",
"email": "j*****@gmail.com",
"status": 1,
"profilePicture": "",
"loginType": "social",
"refreshToken": "eyJhbG***********.eyJzdWIiOiJVMkZzZE*****************",
"isAccess": 1,
"walletAddress": "0x3E2*************************************"
}
}
404: Not Found
{
"status": 404,
"message": "User Not Found"
}
500: Not Found
{
"status": 500,
"message": "Something went wrong, please try again"
}

Update Account Settings

PUT profile
  • To edit the walletAddress of an NFT, you need to pass your Bearer Token via the Authorization header.
Update Account Settings
cURL
curl --location -g --request PUT 'https://api-edexagw.io-world.com/bnft/profile' \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/json' \
--data-raw '{
"bio": "Fishy fam is a NFT collection on the edeXa blockchain consisting of 9,999 fishy’s, who are leaving their great reef to go on an ocean adventure.",
"walletAddress": "<WALLET_ADDRESS>",
"language": "EN",
}'
Parameters
KeyValue/TypeTypeDescription
bio`"Fishy fam is a NFT collection on the edeXa blockchain consisting of 9,999 fishy’s, who are leaving their great reef to go on an ocean adventure."`StringAdd your short bio here
walletAddress`0x3E2*************************************`StringAdd your personal wallet address
language`EN`StringSave your preferred language (EN or DE)
Responses
200: Success
{
"status": 200,
"message": "User profile updated successfully"
}
401: Unauthorized
{
"status": 401,
"message": "Invalid auth token"
}
500:Internal Server Error
{
"status": 500,
"message": "Something went wrong, please try again"
}